package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 宿舍长记录
 * </p>
 *
 * @author hpiggy
 * @since 2025-03-02
 */
@Data
@TableName("dorm_manager_his")
@ApiModel(value = "DormManagerHis对象", description = "宿舍长记录")
public class DormManagerHis implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("宿舍id")
    private Long roomId;

    @ApiModelProperty("舍长id")
    private Long managerId;

    @ApiModelProperty("开始时间")
    private LocalDate startDate;

    @ApiModelProperty("截止时间")
    private LocalDate endDate;

    @ApiModelProperty("创建人")
    private Long createdId;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;


}
